/* 全局样式 */
:root {
    --primary-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --card-hover-transform: translateY(-5px);
    --transition-speed: 0.3s;
}

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
}

/* 导航栏样式 */
.navbar {
    background: var(--primary-gradient) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.navbar-brand:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
    overflow: hidden;
}

.card:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52,152,219,0.3);
}

/* 表格样式 */
.table {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    color: #2c3e50;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
}

.page-link {
    border: none;
    color: #2c3e50;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: all var(--transition-speed);
}

.page-link:hover {
    background-color: #e9ecef;
    color: #2c3e50;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
}

/* 统计卡片样式 */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-speed);
}

.stat-card:hover {
    transform: var(--card-hover-transform);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* 表单样式 */
.form-control {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed);
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52,152,219,0.25);
}

.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* 徽章样式 */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

/* 提示框样式 */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

/* 页面标题样式 */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    font-weight: 700;
    color: #2c3e50;
}

/* 侧边栏样式 */
.sidebar {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar h4 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.sidebar .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.sidebar .list-unstyled li:last-child {
    border-bottom: none;
} 